<html>
<#import "/spring.ftl" as spring/>
<#import "common.ftl" as common/>
<head>
  <title><@spring.message "signup.title"/></title>

</head>



<body id="signup">
   
      <div id="main">
      
        <h1>Sign-up now!</h1>
        
    <form action="<@spring.url "/createuser.html"/>" method="POST" id="signupForm">
      <table>
		<tr>
			<td>
<fieldset>
		<legend>Create a new username & password</legend>
		<table>
			<tr>
				<td><label for="username">User</label></td>
				<td><@spring.formInput "command.username"/><@common.regError/></td>
			</tr>
			<tr>
				<td><label for="password">Password</label></td>
				<td><@spring.formPasswordInput "command.password"/><@common.regError/></td>
			</tr>
			<tr>
				<td><label for="password2">Repeat Password</label></td>
				<td><@spring.formPasswordInput "command.password2"/><@common.regError/></td>
			</tr>
		</table>
			<!--
 		<label for="username">User<@spring.formInput "command.username"/><@common.regError/>
 		</label>
	<p>
 		<label for="password">Password<@spring.formPasswordInput "command.password"/><@common.regError/>
 		</label>
	<p>
		<label for="password2">Repeat Password<@spring.formPasswordInput "command.password2"/><@common.regError/>
 		</label>
	<p>		 	
	-->	
	</fieldset>
				
			</td>
      </tr>
      	
		<#if hideSecretKey?exists>
			<@spring.formHiddenInput "command.randomkey" /><@common.regError/>			
		<#else>
			<tr><td>Special Key:</td><td><@spring.formInput "command.randomkey"/><@common.regError/></td></tr>
		</#if>

		
        <tr><td colspan='4' align="left"><input name="submit" type="submit" value="<@spring.message "signup.createAccount"/>"></td></tr>
      </table>

    </form>
    
    <#if !hideSecretKey?exists>
	    <@spring.message "signup.message"/>
	    <p>
	    Add your name to the <a href="<@spring.url "/mailinglist.html"/>"> mailing list.</a>	   
	 </#if>
	 
	 

	</div>
		
</body>
</html>


